﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Configuration;

namespace Phoenix.AppCode.Data
{
    /// <summary>
    /// Summary description for BaseDAO
    /// </summary>
    public class BaseDAO
    {
        public BaseDAO() 
        { 
            //
            // TODO: Add contrustor logic here
            //
        }

        /// <summary>
        /// Connect Database
        /// </summary>
        /// <returns>Get connect</returns>
        public SqlConnection GetConnection() 
        {
            return new SqlConnection(ConfigurationManager.ConnectionStrings["PhoenixConnection"].ConnectionString);
        }
    }
}